package cn.com.sinosoft.ares.insurance.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Mapper
@Repository
public interface PrpDProjectDao {

    @Select("select Premium from Prpdproject p where p.rationType = #{rationType} and riskcode = #{riskcode}")
    BigDecimal selectPremium(@Param("rationType") String rationType, @Param("riskcode") String riskcode);

    @Select("select Premium from Prpdproject p where p.riskcode = #{riskcode} and kindflag = #{kindflag}")
    BigDecimal selectPremiumBykindflag(@Param("riskcode") String riskcode, @Param("kindflag") String kindflag);

}
